<?php defined('BASEPATH') OR exit('No direct script access allowed');   ?><head>
    <title><?php echo $title; ?></title>
    <?php $this->load->module('admin/index/page_header');?>
</head>
<div class="nav">
    <ul>
        <li class="current">
            <a  href="<?php echo site_url('weixin/actioninfo_result')?>">用户抽奖列表</a>
        </li>
    </ul>
</div>

<form runat="server" name="example" method="post" action="" >
<body>
<table style="width:100%;">
<tr>
    <td>活动名称</td>
    <td>操作时间</td>
    <td>中奖产品</td>
    <td>中奖用户</td>
    <td>注册手机</td>
    <td>奖品类型</td>
    <td>手机号码</td>
    <td>处理时间</td>
    <td>操作</td>
</tr>
<?php
foreach ($list as $items){?>
	<tr style="height:35px;">
		<td><?php echo $items->aname; ?></td>
		<td><?php echo $items->operatetime; ?></td>
		<td><?php echo $items->pname; ?></td>
        <td><?php echo $items->username; ?></td>
        <td><?php echo $items->mobile; ?></td>
        <td><?php if($items->activtype==1) echo "刮刮卡"; elseif ($items->activtype==2) echo "大转盘"; else echo '系统无法找到'; ?></td>
        <td><?php if(!empty($items->qmobile))echo $items->qmobile; else echo "暂无"; ?></td>
        <td>
        	<?php if(!empty($items->admintime)){ echo $items->admintime;}else{ echo "暂未处理";} ?>
        </td>
        <td>
        <?php if($items->isoperate!=1){ ?>
        	<a href="<?php echo site_url('/weixin/actioninfo_result/result_up/'.$items->qid);?>">处理</a>
        <?php }else{ echo "已处理";} ?>
        </td>
	</tr>
<?php } ?>
</table>
<br>
<p align="center">
<?php echo $pagelists;?>
</p>

</body>
</form>
</html>